-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:Press Tab twice to focus on the upload button #520
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #520 +/- ##
=======================================
Coverage 87.10% 87.10%
=======================================
Files 6 6
Lines 256 256
Branches 63 63
=======================================
Hits 223 223
Misses 33 33 ☔ View full report in Codecov by Sentry. |
Please add some test case for it. |
have updated |
@@ -865,4 +865,9 @@ describe('uploader', () => { | |||
expect(wrapper.find('.bamboo-input').props().style.color).toEqual('red'); | |||
expect(wrapper.find('input').props().style.display).toBe('none'); | |||
}); | |||
|
|||
it('the upload button wrapper span does not have the tabIndex attribute', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the test case here should verify the number of times to focus.
When the upload button wrapper span has the tabIndex attribute, pressing the tab key will first focus on the span element, and then pressing tab again will focus on the button element.I removed span tabIndex attribute. issue link 45922